DIRS = src
TARGETS = all clean install 

$(TARGETS): %: $(patsubst %, %.%, $(DIRS))

$(foreach TGT, $(TARGETS), $(patsubst %, %.$(TGT), $(DIRS))):
	$(MAKE) -C $(subst ., , $@)

distdir = $(PACKAGE)-$(VERSION)
top_distdir = ../$(distdir)

distclean:

distdir:
	mkdir -p $(top_distdir)/udt3
	cp Makefile $(top_distdir)/udt3
	$(MAKE) -C src distdir
